package MyOop03;

public class StudentTest {
    public static void main(String[] args) {
        //创建对象
        //小括号里没内容叫调用空参构造，
        //Student student = new Student();


        Student student = new Student("张三",18);
        System.out.println(student.getName());
        System.out.println(student.getAge());
    }

}
